import { Service } from '@gnlab/utils'
import SDKHostCls from '@/sdk/host'
import { type Services } from '@/services'

export class SDKHost extends Service<Services> {
  get instance() {
    return Service.cached('SDKHost.instance', () => new SDKHostCls())
  }

  // 调用此方法以确保 SDKHost 初始化
  touchInstance() {
    return this.instance
  }
}
